<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

#用户模块-用户
Route::post('auth/register', 'AuthController@register');//账号注册
Route::post('auth/regCaptcha', 'AuthController@regCaptcha'); //注册验证码
Route::post('auth/login', 'AuthController@login'); //账号登录
Route::get('auth/info', 'AuthController@info'); //用户信息
Route::post('auth/logout', 'AuthController@logout'); //账号登出
Route::post('auth/profile', 'AuthController@profile'); //账号修改
Route::post('auth/reset', 'AuthController@reset'); //账号密码重置
Route::post('auth/sendCode', 'AuthController@sendCode'); //发送短信
Route::post('auth/checkCode', 'AuthController@checkCode'); //验证验证码
Route::post('auth/captcha', 'AuthController@regCaptcha'); //验证码
Route::post('auth/checkMobile', 'AuthController@checkMobile'); //修改手机号码

#用户模块-地址
Route::get('address/list','AddressController@list'); //收货地址列表
Route::get('address/detail','AddressController@detail'); //收货地址详情
Route::post('address/save','AddressController@save'); //保存收货地址
Route::post('address/delete','AddressController@delete'); //保存收货地址

#商品模块-类目
Route::get('catalog/index','CatalogController@index'); //分类目录全部分类数据接口
Route::get('catalog/current','CatalogController@current'); //分类目录当前分类数据接口
#商品模块-品牌
Route::get('brand/list','BrandController@list'); //品牌列表
Route::get('brand/detail','BrandController@detail'); //品牌详情
#商品模块-商品
Route::any('goods/count','GoodsController@count'); //统计商品总数
Route::any('goods/list','GoodsController@list'); //获得商品列表
Route::any('goods/category','GoodsController@category'); //获得分类数据
Route::any('goods/detail','GoodsController@detail'); //获得商品的详情

//Route::any('home/index',''); //首页数据接口
//Route::any('catalog/index',''); //分类目录全部分类数据接口
//Route::any('catalog/current',''); //分类目录当前分类数据接口

//Route::any('goods/related',''); //商品详情页的关联商品（大家都在看）

//Route::any('cart/index',''); //获取购物车的
//Route::any('cart/add',''); // 添加商品到购物车
//Route::any('cart/fastadd',''); // 立即购买商品
//Route::any('cart/update',''); // 更新购物车的商品
//Route::any('cart/delete',''); // 删除购物车的商品
//Route::any('cart/checked',''); // 选择或取消选择商品
//Route::any('cart/goodscount',''); // 获取购物车商品件数
//Route::any('cart/checkout',''); // 下单前信息确认
//Route::any('collect/list',''); //收藏列表
//Route::any('collect/addordelete',''); //添加或取消收藏
//Route::any('topic/list',''); //专题列表
//Route::any('topic/detail',''); //专题详情
//Route::any('topic/related',''); //相关专题
//Route::any('order/submit',''); // 提交订单
//Route::any('order/prepay',''); // 订单的预支付会话
//Route::any('order/h5pay',''); // h5支付
//Route::any('order/list',''); //订单列表
//Route::any('order/detail',''); //订单详情
//Route::any('order/cancel',''); //取消订单
//Route::any('order/refund',''); //退款取消订单
//Route::any('order/delete',''); //删除订单
//Route::any('order/confirm',''); //确认收货
//Route::any('feedback/submit',''); //添加反馈
//Route::any('groupon/list',''); //团购列表
//Route::any('coupon/list',''); //优惠券列表
//Route::any('coupon/mylist',''); //我的优惠券列表
//Route::any('coupon/selectlist',''); //当前订单可用优惠券列表
//Route::any('coupon/receive',''); //优惠券领取
//Route::any('user/index',''); //个人页面用户相关信息
//Route::any('issue/list',''); //帮助信息




